package com.CampusLife.service;

import com.CampusLife.bean.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 赵海军
 * @createTime 2020-01-16 17:41
 */
public interface IUerService {
    List<User> queryAll();

    User queryById(Integer id);

    void add(User user);

    int update(User user);

    void delete(Integer id);

    User login(@Param("username") String username, @Param("password") String password);

    //用户修改密码
    void UpdatePassword(User user);

    void addUserName(User user);

    User ByUsername(String username, String password);

    List<User> ByUsername(@Param(value = "username") String username);

    List<User> ByNikeName(@Param(value = "nickname") String nickname);

    void updatePasswordAdmin(User user);

    User  getPhone(String username);

    void updatePassword(User user);

    Integer selectByUserName(String username);



}